<?php
include("include/config.inc.php");
$query1 = "DELETE FROM contract 
            WHERE contractId = ".$_REQUEST['contractId'];
$result1= mysql_query($query1);
if($result1)
{
  $images = "DELETE FROM userdoc 
              WHERE contractId = ".$_REQUEST['contractId'];
   $imagesRes= mysql_query($images);
   if(!$imagesRes)
   {
     echo "Delete Fail";
   }
   else
   {
     header("Location:userDoc.php");
   }
}
?>